provider Users GET
/api/0/organizations/ @utdk/sentry
/api/0/organizations/ List Your Organizations
Return a list of organizations available to the authenticated session in a region.
This is particularly useful for requests with a user bound context. For API key-based requests this will only return the organization that belongs to the key.
- owner query
- Specify `true` to restrict results to organizations in which you are an owner.
- boolean
- cursor query
- A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.
- string
- query query
- Filters results by using [query syntax](/product/sentry-basics/search/). Valid query fields include: - `id`: The organization ID - `slug`: The organization slug - `status`: The organization's current status (one of `active`, `pending_deletion`, or `deletion_in_progress`) - `email` or `member_id`: Filter your organizations by the emails or [organization member IDs](/api/organizations/list-an-organizations-members/) of specific members included - `query`: Filter your organizations by name, slug, and members that contain this substring Example: `query=(slug:foo AND status:active) OR (email:[thing-one@example.com,thing-two@example.com] AND query:bar)`
- string
- sortBy query
- The field to sort results by, in descending order. If not specified the results are sorted by the date they were created. Valid fields include: - `members`: By number of members - `events`: By number of events in the past 24 hours
- string
Try it
Authentication
Configure credentials for API Reference
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import sentry from '@utdk/sentry';
await sentry.listYourOrganizations()